﻿
using log4net;
namespace ImageConverter.Logging
{
    public static class Logger
    {
        public static ILog GetLog()
        {
            if (log == null)
                log = InitLog();

            return log;
        }

        private static ILog InitLog()
        {
            ILog logger = null;

            try
            {
                log4net.Config.XmlConfigurator.Configure();
                logger = LogManager.GetLogger(typeof(ImageConverter.App));
            }
            catch { }

            return logger;
        }

        private static ILog log;
    }
}
